package a.f.f;

import a.c.d;
import a.c.z;
import a.d.s;
import a.d.t;
import a.d.u;
import a.f.nc;
import a.f.xc;
import a.f.zc;

public class b
  implements e
{
  private static final s a = new s(40.0D, 30.0D);
  private static final s c = new s(40.0D, 30.0D);
  private static final s d = new s(40.0D, 30.0D);
  private static final u e = new u(5.0D, 5.0D, 5.0D, 5.0D);
  public static int f;
  
  public d a(h paramh, a.c.e parame1, a.c.e parame2, Object paramObject, boolean paramBoolean)
  {
    d locald1 = paramBoolean ? paramh.a(parame1, parame2, paramObject) : paramh.a(parame2, parame1, paramObject);
    d locald2 = paramh.g(paramObject);
    a.a(locald2, locald1, paramh);
    return locald1;
  }
  
  public a.c.e a(h paramh, z paramz, Object paramObject)
  {
    a.c.e locale1 = paramh.a(null);
    paramh.a().a(locale1, a(paramh, paramObject, (byte)4));
    a.c.e locale2 = paramh.f(paramObject);
    a(locale2, locale1, paramh, true);
    return locale1;
  }
  
  public a.c.e a(h paramh, Object paramObject)
  {
    a.c.e locale = paramh.a(null);
    paramh.a().a(locale, a(paramh, paramObject, (byte)3));
    return locale;
  }
  
  public a.c.e b(h paramh, Object paramObject)
  {
    a.c.e locale1 = paramh.a(paramObject);
    paramh.a().a(locale1, a(paramh, paramObject, (byte)2));
    a.c.e locale2 = paramh.f(paramObject);
    a(locale2, locale1, paramh, true);
    return locale1;
  }
  
  public d a(h paramh, a.c.e parame1, a.c.e parame2, Object paramObject)
  {
    a.c.e locale = paramh.d(paramObject);
    if (!a.R) {
      if (locale == null) {
        locale = paramh.f(paramObject);
      }
    }
    return locale.e() > 0 ? paramh.a(parame2, parame1, null) : paramh.a(parame1, parame2, null);
  }
  
  public d a(h paramh, a.c.e parame1, a.c.e parame2, Object paramObject1, Object paramObject2)
  {
    boolean bool = a.R;
    d locald1 = paramh.e(paramObject1);
    if (!bool) {
      if (locald1 == null) {
        locald1 = paramh.g(paramObject1);
      }
    }
    if (!bool) {}
    d locald2 = locald1.f() == parame2 ? paramh.a(parame1, parame2, paramObject1) : paramh.a(parame2, parame1, paramObject1);
    a.a(locald1, locald2, paramh);
    return locald2;
  }
  
  protected s a(h paramh, Object paramObject, byte paramByte)
  {
    boolean bool = a.R;
    if (!bool) {
      if (paramByte == 4) {
        return a;
      }
    }
    if (!bool) {
      if (paramByte == 3) {
        return c;
      }
    }
    if (paramByte == 2) {
      return d;
    }
    return new s(30.0D, 30.0D);
  }
  
  static void a(a.c.e parame1, a.c.e parame2, h paramh, boolean paramBoolean)
  {
    boolean bool2 = a.R;
    boolean bool1 = a.Q;
    xc[] arrayOfxc = ((a.f.o)parame1.g()).f(parame1);
    if ((bool2) || (arrayOfxc != null))
    {
      if (bool2) {
        break label46;
      }
      if (arrayOfxc.length != 0) {}
    }
    else
    {
      return;
    }
    label46:
    Object localObject1;
    if (paramBoolean)
    {
      double d1 = 0.0D;
      double d2 = 0.0D;
      int j = 0;
      do
      {
        if (j >= arrayOfxc.length) {
          break;
        }
        localObject2 = arrayOfxc[j].c();
        d2 = Math.max(d2, ((t)localObject2).c());
        d1 = Math.max(d1, ((t)localObject2).b());
        j++;
        if ((!bool2) && (bool1)) {
          break label196;
        }
      } while (!bool1);
      localObject1 = (a.f.o)parame2.g();
      Object localObject2 = ((a.f.o)localObject1).u(parame2);
      if (bool2) {
        break label204;
      }
      ((a.f.o)localObject1).b(parame2, Math.max(((s)localObject2).a, d1 + e.c + e.e), Math.max(((s)localObject2).b, d2 + e.d + e.b));
    }
    label196:
    label204:
    zc localzc = ((a.f.o)parame2.g()).d(parame2);
    int i = 0;
    do
    {
      if (i >= arrayOfxc.length) {
        break;
      }
      xc localxc = a(arrayOfxc[i], parame2, paramh);
      a.d.o localo = arrayOfxc[i].d();
      localo.g(localzc.a() + localzc.c() * 0.5D, localzc.b() + localzc.d() * 0.5D);
      localObject1 = localxc.a().a(localo, localzc);
      localxc.a(localObject1);
      i++;
    } while (!bool1);
  }
  
  static xc a(xc paramxc, a.c.e parame, h paramh)
  {
    nc localnc = new nc();
    localnc.a(paramxc.d());
    localnc.a(paramxc.e());
    localnc.a(paramxc.a());
    k localk = paramh.a(paramxc);
    if (!a.R)
    {
      if (localk != null) {
        paramh.a(localnc, new a.e_(localnc, localk));
      }
      paramh.a(localnc, parame);
    }
    return localnc;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.f.b

 * JD-Core Version:    0.7.0.1

 */